#ifndef HOUSE_H
#define HOUSE_H

#include <QTableView>
#include <QSqlDatabase>
#include <QSqlTableModel>
#include <QMap>
#include <QSqlRecord>
#include <QHeaderView>
#include <QDebug>
#include <QAction>
#include <QInputDialog>
#include "housein.h"
class house : public QTableView
{
    Q_OBJECT
public:
    house(QWidget *parent = 0);
    void setfit(int,int);
public slots:
    void add();
    void edithandler();
private:
    QSqlDatabase conn;
    QSqlTableModel * model;
    QHeaderView * header;
    QAction * actedit;
    void initdb();
    void initheader();
};

#endif // HOUSE_H
